import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:getx/view_models/setting/setting_view_model.dart';

class SettingView extends GetView<SettingViewModel> {
  const SettingView({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('设置'), centerTitle: true),
      body: Container(
        padding: EdgeInsets.all(16),
        child: Column(
          children: [ElevatedButton(onPressed: controller.logout, child: Text("退出登录"))],
        ),
      ),
    );
  }
}
